<?php

/**
 * Ordermedia form base class.
 *
 * @method Ordermedia getObject() Returns the current form's model object
 *
 * @package    symfony
 * @subpackage form
 * @author     Your name here
 */
abstract class BaseOrdermediaForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'idClientOrder' => new sfWidgetFormInputHidden(),
      'idTextMedia'   => new sfWidgetFormInputHidden(),
    ));

    $this->setValidators(array(
      'idClientOrder' => new sfValidatorPropelChoice(array('model' => 'Clientorder', 'column' => 'idOrder', 'required' => false)),
      'idTextMedia'   => new sfValidatorPropelChoice(array('model' => 'Media', 'column' => 'idMedia', 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('ordermedia[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Ordermedia';
  }


}
